package com.zhanhong.opencvdemo.utils;

import android.widget.Toast;

import com.zhanhong.opencvdemo.core.Core;

public class ToastUtils {

    private static Toast sToast;

    public static void showToast( String toast) {
        if (sToast != null) {
            sToast.cancel();
        }
        sToast = Toast.makeText(Core.getApplicationContext(), toast, Toast.LENGTH_SHORT);
        sToast.show();
    }

}
